package com.gollum.jpa.spcification;

import org.springframework.data.jpa.domain.Specification;

import javax.persistence.criteria.*;

/**
 * 子查询
 *
 * @author Herther
 * @createTime 2022年10月12日 22:25:00
 * @since 1.0.0
 */
public class SubquerySpecification<T> extends AbstractSpecification<T>{

    private Class cs;

    @Override
    public Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuilder criteriaBuilder) {
        return null;
    }


    //@Override
    //public Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
    //    Subquery<Class> subQuery = query.subquery(cs);
    //    Root<Class> subsidiaryRoot = subQuery.from(cs.getClass());
    //
    //    return null;
    //}



}
